package com.hiss.basic.model.system.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class SysUserPasswordUpdateRequest implements Serializable {

    private static final long serialVersionUID = 1;

    @NotNull(message = "用户 ID 不能为空")
    private Long userId;

    @NotBlank(message = "原始密码不能为空")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @Size(min = 6, max = 18, message = "密码长度必须在 6-18 位之间")
    private String newPassword;

    @NotBlank(message = "确认密码不能为空")
    private String confirmPassword;
}
